<?php include 'header.phtml'; ?>
	</div>
		<div id="ActionBarSearchAndListView" class="AppContent GridView">
            <a href="<?php echo $this->basePath();?>/leads/">Leads</a> &#47; <span>Create Leads</span></div></div><div id="ProductEditAndDetailsView" class="SecuredEditAndDetailsView EditAndDetailsView DetailsView ModelView ConfigurableMetadataView MetadataView"><div class="wrapper"><h1><span class="truncated-title"><span class="ellipsis-content">Create Leads</span></span></h1>
            <div class="wide form"><form onSubmit="js:return $(this).attachLoadingOnSubmit(&quot;edit-form&quot;)" id="edit-form" action="<?php echo $this->basePath();?>/leads/createcoba" method="post">
                    <div style="display:none">
                        <input type="hidden" value="16c73dc51f113b6d86c512177237d6c6d4759db6" name="YII_CSRF_TOKEN" />
                    </div>
                    <div class="attributesContainer">
                        <div class="left-column">
                            <div class="panel">
                                <table class="form-fields">
                                    <colgroup>
                                        <col class="col-0" />
                                        <col class="col-1" />
                                    </colgroup>
                                    <tbody>
                                        <tr>
                                            <th>
                                                <label for="Contact_department" class="required">Department
                                                    <span class="required">*</span>
                                                </label>
                                            </th>
                                            <td colspan="1">
                                                <?php
													echo $this->formInput($form->get('department'));
												?>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>
                                                <label for="Contact_firstName" class="required">First Name 
                                                    <span class="required">*</span>
                                                </label>
                                            </th>
                                            <td colspan="1">
                                                <?php
													echo $this->formInput($form->get('firstname'));
												?>
                                            </td>
                                        </tr>
                                        
                                        <tr>
                                            <th>
                                                <label for="Contact_jobTitle">Job Title</label>
                                            </th>
                                            <td colspan="1">
                                                <?php
													echo $this->formInput($form->get('jobtitle'));
												?>
                                            </td>
                                        </tr>
										<tr>
                                            <th>
                                                <label for="Contact_lastName" class="required">Last Name</label>
                                                <span class="required">*</span>
                                            </th>
                                            <td colspan="1">
                                               <?php
													echo $this->formInput($form->get('lastname'));
												?>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>
                                                <label for="Contact_mobilePhone">Mobile Phone</label>
                                            </th>
                                            <td colspan="1">
                                                 <?php
													echo $this->formInput($form->get('mobilephone'));
												?>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>
                                                <label for="Contact_officePhone">Office Phone</label>
                                            </th>
                                            <td colspan="1">
                                               <?php
													echo $this->formInput($form->get('officephone'));
												?>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>
                                                <label for="Contact_officeFax">Office Fax</label>
                                            </th>
                                            <td colspan="1">
                                               <?php
													echo $this->formInput($form->get('officefax'));
												?>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>
                                                <label for="Contact_ownedSecurableitem_id" class="required">Owned Securable Item ID
													<span class="required">*</span>
                                                </label>
												</th>
												 <td colspan="1">
                                                <?php
													echo $this->formInput($form->get('ownedsecurableitem_id'));
												?>
                                            </td>
							
											
                                        </tr>
                                        <tr>
                                            <th>
                                                <label for="Contact_primaryAddress_id" class="required">Primary Address ID<span class="required">*</span>
                                                </label>
                                            </th>
                                            <td colspan="1">
                                              <?php
													echo $this->formInput($form->get('primaryaddress_address_id'));
												?>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>
                                                <label for="Contact_primaryEmail_id" class="required">Primary Email ID<span class="required">*</span>
                                                </label>
                                            </th>
                                            <td colspan="1">
                                                <?php
													echo $this->formInput($form->get('primaryemail_email_id'));
												?>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>
                                                <label for="Contact_titleCustomfield_id" class="required">Title Customfield ID<span class="required">*</span>
                                                </label>
                                            </th>
                                            <td colspan="1">
                                                <?php
													echo $this->formInput($form->get('title_customfield_id'));
												?>
                                            </td>
                                        </tr>

                                    </tbody>
                                </table></div></div>
                        <div class="right-column"><div class="right-side-edit-view-panel">
                                <h3>Rights and Permissions</h3>
                                <div id="owner-box">
                                    <label for="Contact_owner_id" class="required">Owner <span class="required">*</span>
                                    </label>
                                    <input name="Contact[owner][id]" id="Contact_owner_id" value="1" type="hidden" />
                                    <div class="has-model-select">
                                        <input onblur="clearIdFromAutoCompleteField($(this).val(), &#039;Contact_owner_id&#039;);" id="Contact_owner_name" type="text" value="Super User" name="Contact_owner_name" />
                                        <a id="Contact_owner_SelectLink" href="#">
                                            <span class="model-select-icon">
                                                
                                            </span><span class="z-spinner">
                                                
                                            </span></a></div></div>
                                <label>Who can read and write</label>
                                <div class="radio-input">
                                    <input id="Contact_explicitReadWriteModelPermissions_type_0" value="" type="radio" name="Contact[explicitReadWriteModelPermissions][type]" />
                                    <label for="Contact_explicitReadWriteModelPermissions_type_0">Owner</label>
                                </div>
                                <div class="radio-input">
                                    <input id="Contact_explicitReadWriteModelPermissions_type_1" value="2" type="radio" name="Contact[explicitReadWriteModelPermissions][type]" />
                                    <label for="Contact_explicitReadWriteModelPermissions_type_1">Owner and users in</label>&#160;
                                    <div class="hasDropDown">
                                        <span class="select-arrow"></span>
                                        <select id="Contact_explicitReadWriteModelPermissions_nonEveryoneGroup" onclick="document.getElementById(&quot;Contact_explicitReadWriteModelPermissions_type_1&quot;).checked=&quot;checked&quot;;" name="Contact[explicitReadWriteModelPermissions][nonEveryoneGroup]">
                                            <option value="3">East</option>
                                            <option value="5">East Channel Sales</option>
                                            <option value="7">East Direct Sales</option>
                                            <option value="4">West</option>
                                            <option value="6">West Channel Sales</option>
                                            <option value="8">West Direct Sales</option>
                                        </select>
                                    </div></div>
                                <div class="radio-input">
                                    <input id="Contact_explicitReadWriteModelPermissions_type_2" value="1" checked="checked" type="radio" name="Contact[explicitReadWriteModelPermissions][type]" />
                                    <label for="Contact_explicitReadWriteModelPermissions_type_2">Everyone</label>
                                </div></div>
                        </div></div>
                    <div class="float-bar"><div class="view-toolbar-container clearfix dock">
                            <div class="form-toolbar"><a id="CancelLinkActionElement--25-yt2" href="/demos/stable/app/index.php/leads/default">
                                    <span class="z-label">Cancel</span>
                                </a>
                                <?php
									$form = $this->form;
									//$form->setAttribute('action', $this->url('person', array('action' => 'createcoba')));
									$form->prepare();
									//echo $this->formInput($form->get('search'));
									echo $this->formSubmit($form->get('submit'));
								?>
								</div></div>
                    </div>
                </form>
                <div id="modalContainer-edit-form"></div>
                
            </div></div>
                
            </div></div>
<div id="FlashMessageView">
    <div id = "FlashMessageBar"></div>
    
</div>

</div>
<div id="ModalContainerView">
    <div id="modalContainer"></div>
    
</div>
<div id="ModalGameNotificationContainerView"></div>
<div id="GameCoinContainerView"></div>
<div id="FooterView"><a href="http://www.zurmo.com" id="credit-link" class="clearfix">
        <span>Copyright &#169; Zurmo Inc., 2013. All rights reserved.</span></a>
    <div class="ui-chooser">
        <a class="icon-mobile" href="/demos/stable/app/index.php/zurmo/default/userInterface?userInterface=Mobile">
            <span>Show Mobile</span>
        </a><a class="icon-desktop active" href="/demos/stable/app/index.php/zurmo/default/userInterface?userInterface=Desktop">
            <span>Show Full</span>
        </a>
    </div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="/demos/stable/app/assets/2ec0dacb/ProductTemplateUtils.js">
</script>
<script type="text/javascript">
    /*<![CDATA[*/